package com.kintreda.ieco_server.bean.system;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;


/***
 * 系统字典表
 */
@Entity
@Table(name = "setting")
public class Setting implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	private String code;// 字典编码
	private String name;// 字典名称
	private Integer pid;// 父级id
	private String val;// 字典值
	private String points;
	private String sims;//手机版内容
	
	public String getSims() {
		return sims;
	}

	public void setSims(String sims) {
		this.sims = sims;
	}

	public String getPoints() {
		return points;
	}

	public void setPoints(String points) {
		this.points = points;
	}

	//获取子集
	@Transient
	private List<Setting> chlist;
	
	
	@Column(name = "id")
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column
	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	@Column
	public String getVal() {
		return val;
	}

	public void setVal(String val) {
		this.val = val;
	}

	@Transient
	public List<Setting> getChlist() {
		return chlist;
	}

	public void setChlist(List<Setting> chlist) {
		this.chlist = chlist;
	}
}
